package com.itcast.java.member.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 写点什么？
 *
 * @author hrz
 * @since 2020/9/19 0019
 */
@Configuration
@Data
@RefreshScope
public class TestConfig {

    @Value("${user.name}")
    String userName;

    @Value("${user.age}")
    Integer age;

}
